#!/usr/bin/python
# -*- coding: UTF-8 -*-  

"TestEnumClass"

__author__ = "Wang Zhe"

from enum import Enum,unique
# from types import MethodType

@unique
class Weekday(Enum):
    Sun  = 0
    Mon  = 1
    Tue  = 2
    Wed  = 3
    Thu  = 4
    Fri  = 5
    Sat  = 6

def main():
    Month = Enum('Month',('Jan','Feb','Mar'))
        
    for name,member in Month.__members__.items():
        print(name,'=>',member,',',member.value)

    for name,member in Weekday.__members__.items():
        print(name,'=>',member,',',member.value)

if __name__ == '__main__':
    main()